package com.guojian.http.handle.route;

import org.smartboot.http.HttpRequest;
import org.smartboot.http.HttpResponse;
import org.smartboot.http.enums.HttpStatus;
import org.smartboot.http.server.handle.HttpHandle;

public class Http500Handle extends HttpHandle {

	@Override
	public void doHandle(HttpRequest request, HttpResponse response) throws Exception {
		response.setHttpStatus(HttpStatus.INTERNAL_SERVER_ERROR);
		response.write(HttpStatus.INTERNAL_SERVER_ERROR.name().getBytes());
	}

}
